package com.aaa.service.impl;

import com.aaa.dao.UserDao;
import com.aaa.entity.Address;
import com.aaa.entity.User;
import com.aaa.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService {
  @Resource
  UserDao userDao;

    public List<User> sel(User user) {

        return userDao.sel(user);
    }

    public int updatePhoto(Integer uid,String username,String sex,String address,String email,String sName){
        return userDao.updatePhoto(uid, username, sex, address, email, sName);
    }
    public  int insertUser(Integer uid, String uname, String username, String password, String sex, String address, String createtime, String phone, String email, Integer rid, String picture, Integer state){
        return userDao.insertUser(uid, uname, username, password, sex, address, createtime, phone, email, rid, picture, state);
    }

}
